# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=python-editorconfig
pkgver=0.12.3
pkgrel=4
pkgdesc='EditorConfig File Locator and Interpreter for Python'
arch=('any')
license=('PSF')
url='https://github.com/editorconfig/editorconfig-core-py'
depends=('python')
makedepends=('python-setuptools')
source=("https://pypi.io/packages/source/E/EditorConfig/EditorConfig-$pkgver.tar.gz")
sha512sums=('2cb909559dbcf0debab1ee41104dcfdede22aa5e74fcba6ad7b6d5317249ccf7f78b14b4bca4c75d8c4d4c226f5ea18349504fb07eff90ee8e157d67482a99f8')

build() {
  cd "$srcdir"/EditorConfig-$pkgver
  python setup.py build
}

package() {
  cd EditorConfig-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1

  # FS#55201
  mv "$pkgdir"/usr/bin/editorconfig{,3}
}

# vim:set ts=2 sw=2 et:
